<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="/common/common.jspf"%>
<script type="text/javascript" src="${ctx}/js/system/user/edit.js"></script>

<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}
</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		  action="${ctx}/personnel/editPersonnel.shtml">
		<input type="hidden" class="form-control checkacc" value="${user.empId}"
			   name="userManagementMap.empId" id="empId">
		<section class="panel panel-default">
			<div class="panel-body">
				<div class="form-group">
					<div class="col-sm-3">
						<label class="control-label">编码</label>
					</div>
					<div class="col-sm-9">
						<input type="text" class="form-control"
							   name="userManagementMap.EmpCode" id="EmpCode" value="${user.EmpCode}">
					</div>
				</div>

				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">名称</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkacc"
							   name="userManagementMap.empName"
							   id="empName" value="${user.empName}">
					</div>
				</div>

				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">人员类别</label>
					<div class="col-sm-9">
						<select class="form-control" name="userManagementMap.peogenreid" id="peogenreid">
							<c:if test="${user.peogenreid eq 1}">
								<option value="1" selected>车间主管</option>
								<option value="2">经理</option>
								<option value="3">总经理</option>
								<option value="4">管理员</option>
								<option value="5">员工</option>
								<option value="6">实习生</option>
								<option value="7">试用员工</option>
							</c:if>
							<c:if test="${user.peogenreid eq 2}">
								<option value="1" >车间主管</option>
								<option value="2" selected>经理</option>
								<option value="3">总经理</option>
								<option value="4">管理员</option>
								<option value="5">员工</option>
								<option value="6">实习生</option>
								<option value="7">试用员工</option>
							</c:if>
							<c:if test="${user.peogenreid eq 3}">
								<option value="1" >车间主管</option>
								<option value="2">经理</option>
								<option value="3" selected>总经理</option>
								<option value="4">管理员</option>
								<option value="5">员工</option>
								<option value="6">实习生</option>
								<option value="7">试用员工</option>
							</c:if>
							<c:if test="${user.peogenreid eq 4}">
								<option value="1" >车间主管</option>
								<option value="2">经理</option>
								<option value="3">总经理</option>
								<option value="4" selected>管理员</option>
								<option value="5">员工</option>
								<option value="6">实习生</option>
								<option value="7">试用员工</option>
							</c:if>
							<c:if test="${user.peogenreid eq 5}">
								<option value="1" >车间主管</option>
								<option value="2">经理</option>
								<option value="3">总经理</option>
								<option value="4">管理员</option>
								<option value="5" selected>员工</option>
								<option value="6">实习生</option>
								<option value="7">试用员工</option>
							</c:if>
							<c:if test="${user.peogenreid eq 6}">
								<option value="1" >车间主管</option>
								<option value="2">经理</option>
								<option value="3">总经理</option>
								<option value="4">管理员</option>
								<option value="5">员工</option>
								<option value="6" selected>实习生</option>
								<option value="7">试用员工</option>
							</c:if>
							<c:if test="${user.peogenreid eq 7}">
								<option value="1" >车间主管</option>
								<option value="2">经理</option>
								<option value="3">总经理</option>
								<option value="4">管理员</option>
								<option value="5">员工</option>
								<option value="6">实习生</option>
								<option value="7" selected>试用员工</option>
							</c:if>

						</select>
					</div>
				</div>

				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">车间</label>
					<div class="col-sm-9">
						<select class="form-control" name="userManagementMap.empDept" id="empDept">
							<c:if test="${user.empDept eq 1}">
								<option value="1" selected>压铸车间A1</option>
								<option value="2">压铸车间A2</option>
								<option value="3">压铸车间A3</option>
								<option value="5">压铸车间A4</option>
								<option value="6">压铸车间A5</option>
								<option value="7">压铸车间A6</option>
								<option value="4">压铸车间</option>
							</c:if>
							<c:if test="${user.empDept eq 2}">
								<option value="1" >压铸车间A1</option>
								<option value="2" selected>压铸车间A2</option>
								<option value="3">压铸车间A3</option>
								<option value="5">压铸车间A4</option>
								<option value="6">压铸车间A5</option>
								<option value="7">压铸车间A6</option>
								<option value="4">压铸车间</option>
							</c:if>
							<c:if test="${user.empDept eq 3}">
								<option value="1" >压铸车间A1</option>
								<option value="2" >压铸车间A2</option>
								<option value="3" selected>压铸车间A3</option>
								<option value="5">压铸车间A4</option>
								<option value="6">压铸车间A5</option>
								<option value="7">压铸车间A6</option>
								<option value="4">压铸车间</option>
							</c:if>
							<c:if test="${user.empDept eq 4}">
								<option value="1" >压铸车间A1</option>
								<option value="2">压铸车间A2</option>
								<option value="3">压铸车间A3</option>
								<option value="5">压铸车间A4</option>
								<option value="6">压铸车间A5</option>
								<option value="7">压铸车间A6</option>
								<option value="4" selected>压铸车间</option>
							</c:if>
							<c:if test="${user.empDept eq 5}">
								<option value="1" >压铸车间A1</option>
								<option value="2">压铸车间A2</option>
								<option value="3">压铸车间A3</option>
								<option value="5" selected>压铸车间A4</option>
								<option value="6">压铸车间A5</option>
								<option value="7">压铸车间A6</option>
								<option value="4">压铸车间</option>
							</c:if>
							<c:if test="${user.empDept eq 6}">
								<option value="1" >压铸车间A1</option>
								<option value="2">压铸车间A2</option>
								<option value="3">压铸车间A3</option>
								<option value="5">压铸车间A4</option>
								<option value="6" selected>压铸车间A5</option>
								<option value="7" >压铸车间A6</option>
								<option value="4">压铸车间</option>
							</c:if>
							<c:if test="${user.empDept eq 7}">
								<option value="1" >压铸车间A1</option>
								<option value="2">压铸车间A2</option>
								<option value="3">压铸车间A3</option>
								<option value="5">压铸车间A4</option>
								<option value="6">压铸车间A5</option>
								<option value="7" selected>压铸车间A6</option>
								<option value="4">压铸车间</option>
							</c:if>
						</select>
					</div>
				</div>

				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">邮箱</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkacc"
							   name="userManagementMap.empMail"
							   id="empMail" value="${user.empMail}">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">手机</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkacc"
							   name="userManagementMap.empMobile"
							   id="empMobile" value="${user.empMobile}">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">地址</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkacc"
							   name="userManagementMap.empAddr"
							   id="empAddr" value="${user.empAddr}">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">联系电话</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkacc"
							   name="userManagementMap.empTel"
							   id="empTel" value="${user.empTel}">
					</div>
				</div>
				<footer class="panel-footer text-right bg-light lter">
					<button type="submit" class="btn btn-success btn-s-xs">提交</button>
				</footer>
		</section>
	</form>
	<script type="text/javascript">
		onloadurl();
	</script>
</body>
</html>